CC=gcc
CFLAGS_WARN = -Wall
DEFINE =
INCLUDE = -I.
SOURCES = $(wildcard *.c)
OBJS = $(patsubst %.c,%.o,$(SOURCES))
 
TARGET  = scc
All:$(OBJS)
	$(CC) -o $(TARGET) $(OBJS)
	./scc examle/test.c 	
 
%.o:%.c
	$(CC) -c $(CFLAGS_WARN) $(DEFINE) $(INCLUDE) $< -o $@	
clean:	
	rm -f $(OBJS)
	rm -f $(TARGET)